//
//  Ticket.m
//  OC2_实例变量可见度和方法
//
//  Created by 徐国庆 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Ticket.h"

@implementation Ticket

// 声明设置器方法
- (void)setName:(NSString *)name andNumber:(int)number andDay:(int)day andPrice:(float)price
{
    _name = name;
    _number = number;
    _day = day;
    _price = price;
}
// 声明访问器方法
- (NSString *)name
{
    return  _name;
}
- (int)number
{
    return _number;
}
- (int)day
{
    return _day;
}
- (float)price
{
    return _price;
}



@end
